<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<script type="text/javascript" src="js/jquery-3.1.1.min.js"></script>
<body>
<form id="form">
    角色名：
    <input id="roleName" name="roleName"/>
    备注：
    <input id="note" name="note"/>
    <input id="commit" type="button" value="提交"/>
</form>
<script>
    $(function () {
        $("#commit").click(function () {
            $.ajax({
                url: '/test/seriaForm.do',
                //将form数据序列化，传给后台。以roleName=xxx&note=xxx传递
                data: $("#form").serialize(),
                success: function () {

                }
            });
        });
    })
</script>

</body>
</html>